import { ColumnProps } from '~/library/components/ProTable/interface'
import { Inventory } from '/@/api/interface/goods'

export const columns: ColumnProps<Inventory.ResWaresCategoryList>[] = [
  { type: 'selection', width: 80 },
  { type: 'index', label: '序号', width: 80 },
  {
    sortable: true,
    prop: 'name',
    label: '分类名称',
    align: 'left',
    search: {
      el: 'input',
    },
  },
  {
    sortable: true,
    prop: 'isShow',
    label: '是否显示',
    width: 120,
  },
  {
    sortable: true,
    prop: 'createTime',
    label: '创建日期',
    width: 250,
  },
  { prop: 'operation', label: '操作', width: 300, fixed: 'right' },
]
